/**
 * 销售管理路由
 */
export default [
  {
    path: '/sales',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'cashier',
        name: 'SalesCashier',
        component: () => import('@/views/sales/Cashier.vue'),
        meta: { title: '收银台' }
      },
      {
        path: 'cashier-manage',
        name: 'SalesCashierManage',
        component: () => import('@/views/sales/CashierManage.vue'),
        meta: { title: '收银管理' }
      },
      {
        path: 'cashier-settings',
        name: 'SalesCashierSettings',
        component: () => import('@/views/sales/CashierSettings.vue'),
        meta: { title: '收银设置' }
      },
      {
        path: 'customers',
        name: 'SalesCustomers',
        component: () => import('@/views/sales/Customers.vue'),
        meta: { title: '客户管理' }
      },
      {
        path: 'orders',
        name: 'SalesOrders',
        component: () => import('@/views/sales/Orders.vue'),
        meta: { title: '销售订单' }
      },
      {
        path: 'order-dashboard',
        name: 'SalesOrderDashboard',
        component: () => import('@/views/sales/OrderDashboard.vue'),
        meta: { title: '订单统计看板' }
      },
      {
        path: 'order-approval',
        name: 'SalesOrderApproval',
        component: () => import('@/views/sales/OrderApproval.vue'),
        meta: { title: '订单审批' }
      },
      {
        path: 'order-tracking',
        name: 'SalesOrderTracking',
        component: () => import('@/views/sales/OrderTracking.vue'),
        meta: { title: '订单跟踪' }
      },
      {
        path: 'order-analysis',
        name: 'SalesOrderAnalysis',
        component: () => import('@/views/sales/OrderAnalysis.vue'),
        meta: { title: '订单分析' }
      },
      {
        path: 'outbound',
        name: 'SalesOutbound',
        component: () => import('@/views/sales/Outbound.vue'),
        meta: { title: '销售出库' }
      },
      {
        path: 'returns',
        name: 'SalesReturns',
        component: () => import('@/views/sales/Returns.vue'),
        meta: { title: '销售退货' }
      },
      {
        path: 'promotion-manage',
        name: 'SalesPromotionManage',
        component: () => import('@/views/sales/PromotionManage.vue'),
        meta: { title: '促销活动管理' }
      },
      {
        path: 'promotion-engine',
        name: 'SalesPromotionEngine',
        component: () => import('@/views/sales/PromotionEngine.vue'),
        meta: { title: '促销规则引擎' }
      },
      {
        path: 'promotion-report',
        name: 'SalesPromotionReport',
        component: () => import('@/views/sales/PromotionReport.vue'),
        meta: { title: '促销效果分析' }
      },
      {
        path: 'analytics',
        name: 'SalesAnalytics',
        component: () => import('@/views/sales/SalesAnalytics.vue'),
        meta: { title: '销售分析' }
      },
      {
        path: 'pivot-analysis',
        name: 'SalesPivotAnalysis',
        component: () => import('@/views/sales/PivotAnalysis.vue'),
        meta: { title: '数据透视' }
      },
      {
        path: 'report-export',
        name: 'SalesReportExport',
        component: () => import('@/views/sales/ReportExport.vue'),
        meta: { title: '报表导出' }
      },
      {
        path: 'hardware-integration',
        name: 'SalesHardwareIntegration',
        component: () => import('@/views/sales/HardwareIntegration.vue'),
        meta: { title: '硬件集成' }
      },
      {
        path: 'customer-crm',
        name: 'SalesCustomerCRM',
        component: () => import('@/views/sales/CustomerCRM.vue'),
        meta: { title: '客户关系管理' }
      }
    ]
  }
]

